import Http, {RequestHttp} from "@/util/http";

/**
 * 给邮箱发送验证码
 * @param mail
 * @returns {AxiosPromise}
 * @constructor
 */
export const sendEmailValidation = (mail) => {
    return Http({
        url: '/sys/email/send-validation',
        method: 'get',
        params: {
            mail
        }
    })
}
/**
 * 更改邮箱
 * @param mail
 * @returns {AxiosPromise}
 * @constructor
 */
export const changeEmail = (data) => {
    return Http({
        url: '/sys/change-email',
        method: 'put',
        data
    })
}
/**
 * 更改邮箱
 * @param mail
 * @returns {AxiosPromise}
 * @constructor
 */
export const WeiXinPay = 980;
export const AliPay = 966;

export const pay = (data) => {
    return RequestHttp({
        url: '/Pay_Index.html',
        processData: false,
        method: 'post',
        data
    })
}
